<!--
 * @Description: 
 * @Version: 1.0
 * @Autor: younghxp
 * @Date: 2021-04-15 16:05:20
 * @LastEditors: younghxp
 * @LastEditTime: 2021-12-08 15:41:14
-->
<template>
  <el-dialog
    title="提示"
    :visible.sync="improveDialogVisible"
    @close="closeDialog"
    width="30%"
    :modal-append-to-body="false"
    :close-on-click-modal="false"
    :close-on-press-escape="false"
    :append-to-body="true"
    center
  >
    <span>贵单位档案信息未完善，请尽快去完善信息</span>
    <div slot="footer" class="dialog-footer">
      <el-button @click="closeDialog" class="cancel">跳 过</el-button>
      <el-button type="primary" @click="toImprove" class="save"
        >去完善>></el-button
      >
    </div>
  </el-dialog>
</template>

<script>
export default {
  name: 'ImproveEmployerDialog',
  props: {
    improveDialogVisible: {
      type: Boolean,
      default: false,
    },
  },
  data() {
    return {}
  },
  methods: {
    toImprove() {
      this.$emit('closeImproveDialog')
      this.$router.push({
        path: '/home/enterpriseSet/ImproveInformation',
        name: 'ImproveInformation',
        query: { pageType: 'improve' },
      })
      this.$store.commit('CHANGE_SLIDER_NAME', {
        oldUrl: '/home/enterpriseSet/employerRecordDetail',
        newUrl: this.$router.currentRoute.fullPath,
      })
    },
    closeDialog() {
      this.$emit('closeImproveDialog')
    },
  },
}
</script>

<style scoped lang="less">
// /deep/.el-dialog__footer {
//     height: 66px;
//     padding: 15px 20px;
//     text-align: center;
// }
</style>
